Added js testing for rspec.
Change throttle for debounce so it's always called.
Gracefully handle errors in processing the regular expression and replacements.
Merge branch 'fix-1'. Fixes #1