wip: start migration to prototype objects

Moving away from copying function to response elements.
Now we set the prototype and we have all functions in the prototype.

Later, we won't set the prototype