a js pluging for date select