if remote file load fails, try filesyetm next
if we dont have cordova on page dont listen for deviceready event