Fix JScript runtime on Windows 8
Fix PyV8 error handling

PyV8 maps some Javascript errors to built-in Python exceptions since
r304.
https://code.google.com/p/pyv8/issues/detail?id=178
https://code.google.com/p/pyv8/source/detail?r=304