feature:js(unregister_hook_handler) Provide a function to unregister a hook handler.

A simple function to unregister a javascript hook handler.
Remove handler in priorities list if exist.

- [ ] fix build errors
- [ ] write tests
- [ ] write developer docs
- [ ] Change commit message to `feature(js): ...`
- [ ] resubmit to 1.x branch