My Javascript patterns for later reference.