removed some jshint issues