Escape apostrophes for JS
If stats.js plugin is available, load it
On save trigger doStatsJS after

Window content will reload, then append plugin afterwards
doStatsJS plugin runs after open and update events
Update to match main JS file