Attach javascript to controllers to HTML elements through comment blocks.