Make JScript work on Windows 8