Refactoring in-class coding of a small-scale MTA simulation. Using Underscore.js