Fixed jshint complains