Punch (CA) interview question

Refactor legacy javascript code to MVC