JS Optimization

I’ve just removed some optional semicolons based on [this philosophy](http://mislav.uniqpath.com/2010/05/semicolons/). 

I’ve also optimize some variables definitions merging somes.