allow extending extern base classes by extern classes
[js] add js.RegExp extern
[js] use js.RegExp instead of Dynamic in EReg
Merge pull request #3487 from nadako/js_regexp

[js] provide native RegExp extern and use it in EReg