updated README, added javascript example