Updating link to image uploader in javascript so it includes relative root.