Fixing core.js last line has broke javascript

Changed back to the code commited at tree:ee796c7671.  This appears to
have been mistakenly broken at tree: cb43fcf40.