Corrected route in js