use lodash, generate browser compatible lib