Natural-language event parser for Javascript