fixed small jslint errors