Any sort of editor that provides syntax highlighting would be useful. I personally use Vim, but it's not really for the casual user. Notepad++ is nice, as is Sublime Text. Of additional use is a program like JSLint ( <a href="http://www.jslint.com/" rel="nofollow">http://www.jslint.com/</a>) which will look at your code and give you suggestions on making improvements (not everything it points out is a problem, but everything it recommends will lead to better (by which I mean more understandable and less error prone) code.), as well as telling you for certain if there is something wrong like a missing } or the like. I imagine Sublime Text and Notepad++ both have plugins that will lint your code for you.