refactoring holymvc.js to modular code