Fixed missing ledger lines for some higher notes

Also rewrote note.js!renderLedgers to be a little more clear about what's going
on.