Assertion functions for use with require.js