Add base url to js