[JS] Response management

When an actor is remote the way the response is managed is based on
future like feature. Then hook and handler are creared and managed by
the framework.