Partial Application in JavaScript using bind()