updating core.js file to correct an assignment vs. equality issue