Revise proxy to use objects instead of prototypes

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