changes based on jslint