Rewriting the original monolith in a more object-oriented format.  Definitely open to critique here; I've never tried OOP with anything resembling JavaScript's implementation of it.