working on convert $fn to jquery plugin
merge conflicts