Js routes fix