Fix URLs in mainjs