use dynamic admin route in js