Fix absolute paths in the javascript src parameter when referenced

in a html file that's not in the root directory.