escape quotes in tags printed to js