Auto refresh onkeyup and oninput