Fixed #17
`select` event has new parameters `ui.cmd` and `ui.target`.

Closed #23
Closed #22
Fixed replaceMenu()

Closed #15