Ruby vs JS