fixed bug in FASTA.js reported by Grigory Sharov