use relative urls in the js