I am building a sequencer with javascript and the frameworks foundation and soundmanager2.