Update core:js

Quick fix of a few typos.