modified js for lost status