fixing js routing