Sinatra/JavaScript app where users try to guess correct order of lines from poems