Adds a deviceready event handler. Reverts loadUrl to default due to new dir layout