fixes jquery for keyup method