I have this bit of JavaScript...
15 $(\'.ajax_edit_address\').each(function() { 16 $(this).ajaxForm({ 17 target: $(this).parents(\'table.addre
If you've got js-beautify installed (it's available for Python: pip install jsbeautifier, or Node: npm -g install js-beautify) then you can just run it directly from vim - to reformat the current file:
pip install jsbeautifier
npm -g install js-beautify
:%!js-beautify