Solved jshint errors