Adding javascript sample