Web applications without a web server

Translating grammars to JavaScript, example: