add javascript grammar and example