add deviceready event trapper to index.html