jslint, other cleanup