Use syntax that's easier for beginners to understand: (), not $.
The MaxCounter example seems to be working now.