standarize code style. 4 spaces and few mores things.
js-beautify sublime plugin used