A litte off topic. Much that I like vim I haven't found any plugin than can indent Javascript properly. To be honest whenever I write Javascript I just open up emacs. Is there something close to js-mode in vim?
I use this to indent my JS: http://www.vim.org/scripts/script.php?script_id=1936
You could use JSLint plugin to get more of the features, but I've never gotten it to feel like js2-mode.