Speech recognizer in JavaScript, base library