clear javascript errors after they are corrected