fix relative url in js