Fixes js base url