Javascript Javascript DOM Event oninvalid