deleted functio in js