Updating the examples to AMD syntax.

Refs #17468