Durham Hale - Javascript

JavaScript version of PHP's str_replace() function