Double to single quotes in JavaScript