JS and route view cleanup