updated index.html and index.js

and added database and jquery.mobile.js