Speed reading engine in Javascript