This needs to use either relaxed browser security to enable XSS and loading from local disk, or needs to be wrapped in phonegap.