javascript for close reminder