js_backend: support for explicit delegation

This commit adds support for explicit delegation.