VJS (Visual JavaScript) will help you write and visualize your code, by providing a puzzle pieces as your code statements which you can drag and drop to form your application, then you can see line by line execution where you can track the variables at your memory and how their values change during the execution process.
HTML, CSS, JavaScript, jQuery, jQuery-UI.
VJS - Try it Here