JavaScript & Ruby code challenge together