I have posted the in a discussion.
I have it working mostly now, but there is still one part that is still getting an error (enabled the use of Inspect Element in web viewer):
Origin null is not allowed by Access-Control-Allow-Origin.
Failed to load resource: Origin null is not allowed by Access-Control -Allow-Orig in.
XMLHttpRequest cannot load http:/Jlocalhost :8888/a udioplaY.er/1558.mp3 due to access control checks.
I can load the exact code from a html page (load URL) and it works perfectly.
When I reference the exact code from a field and or put it in the webviewer calculation (converted " to \") I get the errors.
There seems to be a restriction in the web viewer when using calculations.
Help would be appreciated.