refactored ParseBadges for simplicity
moved variable declarations outside of each loop in parser for speed.
added braces around if statement within each loop in _parser for readabliity. added missing semicolons.