Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
The calc is written in javascript. I'm not sure I understand the second question. I pulled each Pokemon's typing, base stats, and other data from the Smogon dex.