fixing up jslint issues