make the time selector a jquery plugin