rename chime.js to api.js since naming is misleading