Trying to better support multiple AMD models.
Changed _extend to extendHook
Simple examples.