further updating to fix jshint errors