Javascript underscore vs Ruby