Replace All In String Javascript Functions With Parameters