Small utility for making jQuery-style method chains