Method binding mixing pattern using JavaScript with partial application