added chordapi.js file