Merge pull request #258 from afrjorge/require-js

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