Add javascript to a theme component

Check loadScript in the codebase/meta for a systematic way to achieve this.