Update core.js

missing variable