Emulating jQuery by returning self to chain function calls.