init using phonegap filesystem