[IMP] Support url generation in JS