Merge pull request #274 from afrjorge/require-js

[CDF-332] - Make samples run against require modules