Context switcher js updates