Added JavaScript example.