fixes according jshint