Hmm... im not exactly what the algorithim is but im going to decompile the file and check the mpq files and such and ill tell you if i come up with anything.
Never mind i fell stupid now this is written in javascript i was thinking it was a downloadable file.. ill see if i can decipher the JS though.. although it will probably take a while as i do not like JS stupid shit