added page.js from rockncoder

js to enable multiple pages in a single index.html file