created utils.js, api.js, began defining internal api on core.js