update index.html and index.js

modify and pagecreate problem and add new functions