fixing jslint issues