fixed jslint issues