aside switch, js cleanup