fix attr to val() and replace timer with events

attr is no longer supported by jQuery 1.9 as it's incorrect to use
attr to get value for a textarea.  val() should be used, instead.

also, removed the timer that fires every 10 milliseconds
and instead implement event-based firing
timer is replaced by: keyup change input paste

tested in chrome, ie8, firefox