JavaScript replace: Example on How to Return Replaced Text