removing persistence.jquery dependency and handling 404 for offline purpouse