Use direct object proxy instead of prototype

Revise proxy to attach functions to objects directly instead of their prototypes.