Fixed demo
Fixed getRule issue in jQuery plugin