js double-quotes to single-quotes conversion