Added callback on next word

+ js linter corrected compares
+ treating html special characters (e.g. >) as one character instead of
the long form (e.g. &gt;)