Adding a failing test for #228
Adding isRegex.
String.prototype.replace partial reimplementation.

Credit to https://gist.github.com/jdalton/93632ea7a13c3c83c06e for how to do it. Thanks, @jdalton!
Merge pull request #229 from ljharb/fix_string_replace

Fix String#replace in Firefox