jsformat
setting the prototype inside the constructor, will do this at each instanciation. We don't need the context at that step so we can extract this loop and use a factory function to make our method gateways