Fixing Core.js broken javascript

This appears to have changed  at tree:cb43fc1f40.  This was changed
back to the previous commit tree:ee796c7671