now working with jquery plugin