Ruby on Rails oriented jQuery plugin for smart notifications