Small formatting, jshint fixes

Fixed jshint errors and trailing spaces