Open gpx file in webviewer with run javascript

I am using:

Which means reading the file from the assets will not help very much anyway...

That's right, what I'm trying to do is to load a .gpx file that is in a directory on the mobile phone.