remove alert() in JS