[OE-2664] first bash at standardising the way javascript is passed through from the controllers.
Merge branch 'jira/2664' into release/1.3-moorfields

Conflicts:
	assets/js/module.js
	controllers/DefaultController.php