repairs jslint errors