I know there are many ways over the internet but this case is a special one.
I need to replace :) with . And
:)
You have to escape the parenthesis:
str.replace(/:\)/g, '');