[OE-2664] first bash at standardised javascript passthrough from the controllers.