add javascript sample