core.js - api