fixing up stuff using jshint