String Replace converts $$ to $ in javascript

I basically want $$ in my string. But when I do

"Replace this with two dollar symbols".replace("this", "$$")

I get

"Replace $ with two dollar symbols"

Why is this happening? And how do i fix it?