Remove JS from gridlets widget and create jquery plugin