Adds an Extend function to 'extend' properties from one object to another. Also adds the 'events' object which executes functions on click