Offline phonegap support