makes code comply with jslint