Help Python Replace Function Example In Javascript