mine as well make it a jquery plugin while I'm at it