escape single quotes in results to avoid JS syntax errors
escape single quotes in results to avoid JS syntax errors
remove console.logs