Adding object containing methods to Plugin.prototype instead of adding them individually

Minor improvement, because now the `prototype` object is accessed only once, instead of 5 times.