Fixes some bugs in the transposer logic

specially when handling tones with accidents (b, #)
Merge branch 'master' into gh-pages
Add modified generated JavaScript