S-47665 better URL encapsulation within the js module