Very tiny helper function to construct fluent JS interfaces