jquery plugin

created a jquery plugin from the jquery solution