Updated code

Updated script uses "font.glyphOrder" to check if glyphs exist in each
open font, avoiding the mismatched glyph problems which occurred in the
previous version