proper plugin syntax

Implemented proper jQuery syntax plugin.
Next on todo list : html generator factory and paging factory.