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 of textarea.  val() should be used instead.

also, removed the timer that fired every 10 milliseconds and instead implemented event-based firing. Timer is replaced by: keyup change input paste

tested in chrome, ie8, firefox