global vars moved to app.js

** main.js should now only handle jquery mobile events