Put code in external JS to decouple notifications, settings, and command running since it looks like python of C++ is going to have to get involved.