Adding javascript example