Added app exit

-The app can now be exited when run as a webapp on mobile.
-Touch errors fixed
Tested on Google Nexus 7.