All .js files refactored to follow npm's coding style.