Utility for creating chainable methods and fluent APIs (or fluent interfaces) in JavaScript