use inAppBrowser
move javascript code to script file
solve  merge conflict