Originally Posted by Fat Honko
By the time I learned that IE has stricter standards
Not stricter, stupid own standarts that are supported only by Microsoft.
I suggest a possibility to add own sets for opponents. There are, well, sets that aren't on smogon database. I think you can also use statistics
And I think you can merge getUserOptions() and getTargets() into one function (or an object so you can generate json with whatever generates that code) to save some traffic and avoid writing same code twice.