I want to replace all "w" with "e":

```
var d = document.getElementById('hash').innerHTML.replace("/w/g","e");

```

But it doesn't replace anything! Earlier I tried using replace("w","e"), but it replaced only the first "w".  
 So, what to do?