Incorrect variable name in core.js