JS backend: support for explicit delegation

 #KT-4479 Fixed