Fix README sample JRuby code.

I've noticed that JRuby sample code in README does not work properly. So, I was fixed.