Fixed a bug with relative js source.