Replaced 'RequireJS' with 'AMD'.

These snippets are more general AMD snippets, rather than being specific
to RequireJS i.e. they can be used by anyone using an AMD script loader,
not just RequireJS.