Updated url to request resource file from to relative path which fixes an issue when running under PhoneGap.