Added this.require() function to require and add to prototype chain