add index and input value for regexp.exec result array
Merge #489 r=@kevinmehall: Fix String.match() with non-regex parameter, add Regex.exec result properties

Cleanup of @micnic's #485. Fixes #482
Adds encodeURI and decodeURI