JavaScript Cambiar _ al espacio

var str = 'How are you';
var replaced = str.split(' ').join('_');
Different Dunlin