Fixing issue with double dollars in replace string

I picked this idea from https://github.com/adobe/brackets/pull/5772#issuecomment-27436833.
This should be exactly the same dollar-signs-in-replace-with-string behaviour as JavaScript itself haves.

FindReplace tests passing.