Resolving jshint errors