Fixed jQuery problems with passing the element for location input;
Updated app cache manifest
Changed to AngularJS;