Now saves urls in js.