Need to escape #\' in javascript strings