fixed javascript route