Updated index.html and page.js

Page now automaticly adjusts to api