Update core.js

Fix to return type in lower case.