Transform all double quote strings in a piece of JavaScript code to single quoted strings