cleaning up jslint warnings