Added JavaScript example