sync index.js from Api