fixed jslint complaints