This is a prep commit for typescript migration for `stats.js`, which used a third party module `plotly.js` that doesn't come with types.