Define functions on prototype on on every Gadget instance.