Routes in javascript, rerouting user directions within the Spa