added javascript example