Fixes typos in core.js and css.js. Closes gh-1175