Update str_replace.js

php quote: "If search is an array and replace is a string, then this replacement string is used for every value of search."
This mod converts replace to an Array of search.length