Added a Javascript example.