Most of my Javascript code is created in text editors. My preferred editor, Texmate, does a great job with snippets and syntax highlighting. Lately I’ve been trying NetBeans which has a background parser as well as the regular code folding and syntax highlighting features.

Some first impressions:

More info: