Use lodash templates instead of replace