Added JavaScript examples