jQuery selector should be cached. Looks like there were already two instances of $elem so that was our bad, but this is a good opportunity to fix it.

Coding convention is to add a $ before the var name so you know it's a jQuery elem. Ex: $elem