Inspired by A better coding convention for lists and object literals in Javascript and npm style.
With help from Cheeso on StackOverflow and Mihai Bazon
A new emacs mode-combo for npm style.
EDIT : implemented here: https://github.com/thomblake/js-mode