Redone as jquery plugin