some JS about audio and main view changes