Use JS events for switching kernelspecs