Javascript, Routes e Views