centralize electron functions of screenshotpage to a runtime file

remove some set innerHTML instances.
4 jobs for refactor_a_bit_and_make_it_work_again in 6 minutes and 25 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Prepare
passed #1075792037
npmi

00:01:44

 
  Test
passed #1075792048
test_formatting

00:01:28

 
  Build
passed #1075792055
build

00:01:47

 
  Package
failed #1075792066
electron-builder

00:01:25

 
Name Stage Failure
failed
electron-builder Package
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mana-launcher@1.2.0 package script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-03-05T11_41_33_062Z-debug.log
Cleaning up file based variables
ERROR: Job failed: exit code 1