Update core.js

Added missing comma