pass along root url to javascript to deal with custom urls