fixes after running through jshint