The vim-javascript plugin at https://github.com/pangloss/vim-javascript is significantly better than the one built in to Vim, which I am told is currently unmaintained. Vim-javascript has an active group of contributors and maintainers, while the indenter works well and has been mostly stable since 2009.
Tim Pope recently created an issue on the project suggesting that we contribute it to Vim for inclusion in the next release. I think that's a good idea and probably should have been done long ago.
I hope you'll agree. Regards,
Darrick Wiebe (pangloss)