Make infiniScroll work if $ is not jQuery compatible.

Pass $ into closure. $ should can be jQuery or Zepto.

This will fix any situations where $ is not a jQuery compatible library (ex: prototype.js).