escaped quotes in appJS function