Basic Javascript Quiz in ROR