Fixed the Javascript example.