Changed hardcoded base URL.

Now it will automatically detect the base directory.