More generic Javascript Side Hook API. A bunch more hooks.