warning for the page not created yet in javascript
finished about everything for the first version