New extend method

New method is better supported by all browsers and can extend prototypes that already have content.
Refactored references

Note that rename is a mistake by git.