Most errors fixed and jquery-mobile entirely removed.

Error in caching remains