pull out hub-api.js.  Instead load the library via require