Introduce underscore.js to improve the code quality

Underscore.js enables to make data transformation easier to understand
and more maintainable.