made all references relative (img and script) for phonegap