Function definition, this and bind in JavaScript