Change event handling and styling of menus slightly

Because the onBackButton() function in app.js only works on Android
phones, and I don't have an Android phone, that function is untested.