If I had tests, you could call this refactoring

but hey, this is javascript, right?
what could possibly go wrong?