Refactored code in main.coffee