forgot js for checking date