bam.js update from dalliance
parsing of the cigar string for ion.html example