Fixed jshint findings