Functional utility library for adding common behaviors to JavaScript constructor functions