Create route segments model. Tweak JS to be able to render route segments