[CDF-328] - Add support for Require.js in CDF

	- Fixed javascript unit tests