sync and cache template system using lodash template in node.js