add a simple JS-based hook host