update ui using jquery mobile.
added appcache code. (pre)