Add JavaScript partial application function.