add javascript sample.