fixed jshint erorrs