want to support phonegap offline file, instead of data uri