Event handling library inspired by FRP