- Bug fixes for ruby and js api.

- js api example has its own page