* Reimplemented as JQuery Widget.
* Added multiple rules on handling data
* Simplified (stage 1)