phonegap write file (index.xml)