fixed incorrect route in js