fixing some jshint issues