deleted on key press js in html