Added js hook.
Code review