Adapted to changes in GDCore.
Merge pull request #5 from 4ian/IndependentJSExtensions

Adapted to changes in GDCore.