Fixed js routing