cleanup suggested by jslint