Non-destructive function mixins for JavaScript objects.