Remove all special characters using JavaScript

Sample Code:

var withSpecialCharacter = "B@i#s$w%a^j&e'e[t] S*a(m)a-l+~`";
var withoutSpecialCharacter = withSpecialCharacter.replace(/[^a-zA-Z0-9\s]/g, "").replace(/\s\s/g, " ");
alert(withoutSpecialCharacter);