SpecialJavaScriptTest: Use Config instead of globals

Change-Id: I7f32c7ff63dc1547e4bd76153ec449894dbd0184
Merge "SpecialJavaScriptTest: Use Config instead of globals"