Refactor jakefile.js