fix strict js grammer