At the moment, it is tedious to implement javascript actions to handle event listeners for some of these actions: onKeyPress, on side-panel navigation, on back-button press etc.
Some easier to manage Client API, or functionality to attach/detach event listeners based on the page, might be helpful.