making it into a jquery plugin