rename page.js -> api.js