Improve JS formatting and style.

This commit modifies the spacing for the index.js module.