Move component.js back into core application
Merge pull request #2350 from guardian/revert-component

Move component.js back into core application