cleaning up for jslint