add javascript part of comprehension