fixed javascript routes