use underscore.js to call function only once