Added support for extending native javascript types.