add capture name to returned matches

The 'ThrowException' call is a v8 function:
http://izs.me/v8-docs/namespacev8.html#a2469af0ac719d39f77f20cf68dd9200e

it doesn't throw an exception here (in the c++ library), but schedules a V8/Javascript exception to be thrown.