Fix class and class method declarations as well as other type and api fixes in jsdom.cpp
Further alterations to jsdom.cpp, this commit makes it actually compile against
the latest SpiderMonkey