fixes to ruby examples and execute.js