fixes for jshint issues added