Fix multiple jslint errors in core.js