Added links for jQuery Mobile, and started to refactor the app to work correctly