added javascript sample