jslint fixes in script-base