How to DRY up prototype javascript method definitions?
<p>I'm coming back to "raw" Javascript, and I'm writing classes like this:</p>

<pre><code>var Person;

Person = (function() {

    function Person() {}

    Person.prototype.run = function() {};

    Person.prototype.jump = function() {};

    Person.prototype.talk = function() {};

    return Person;

})();
</code></pre>

<p>I feel like the repetition of <code>Person.prototype</code> isn't very DRY: it's also harder to avoid line wrapping. Are there common ways of addressing this? For example, one could assign <code>Person.prototype</code> to a small variable like <code>cls</code>, which would make the lines look more like</p>

<pre><code>cls.run = function() {};
</code></pre>

<p>...but that might be too unconventional.</p>
