factor out chords for ruby/javascript (disable javascript for now, have codejom)