new iteration bob.rb
refactored bob.js