Updates path to scripts.

Updates path to javascript files to be relative to the current document,
instead of usign the full path to a local file system, which won't work
anywhere else except a local machine.