Project: Refactor so JSDoc understands it better

Apparently JSDoc understands the constructor + prototype methods
way of defining classes better, than the object-notation one. So
use the former, for being able to cross-reference docs.