Remove initAPI function from index.js