Chord Ear Trainer Written in Javascript