Add space before comments in javascript
Apply a few javascript optimizations