Always send proper JSON responses; JS formatting fix.