Javascript Replace Double Curly Braces