Added example with ruby and js code.