index.js renamed to hubapi.js