addressed some jshint issues