changing event on the input from click keyup to input. To get frequent updates on firefox.