That's a common JS pattern.