Added jquery.fn implementation