pass $ into closure

This will fix any situations where $ is not a jQuery compatible library (prototype).