Refactor using lazy.js instead of underscore.js