slight edit to js and removed user index route