Query Parser: switched to TypeScript and Karma tests