api token initialization moved to api.js.coffee