add javascript syntac check