A virtual pet in Ruby/Javascript