Adding AMD snippets for defining functions and literal objects.