Standardize styles, fix jshint issues