fixed some jshint problems