Merge pull request #331 from afrjorge/require-js

[CDF-441]-QueryComponent fails to fetch data