convert Ruby back reference to JS format in String#sub
Merge pull request #271 from mojavelinux/regex-backref-alignment

convert Ruby back reference to JS format in String#sub