Utility for easily creating chainable methods and complex fluent APIs in JavaScript