added modifications in order to allow monkeytestjs integration
mods for monkeytestjs