Jshint fixes

Fixed all jshint warnings.