Support js as well as hubs for js proxy generation url. see issue 1822 for
more details.