[OE-2664] first bash at standardised javascript passthrough from the controllers.
Merge branch 'jira/2664' into release/1.3-moorfields