A Simple replaceAll() Function for Javascript