split plogx.js into stats.js and raw_logs.js