Fixed bugs in unloading / reloading frame scripts

Thanks to Wladimir’s suggestions
(https://palant.de/2014/11/19/unloading-frame-scripts-in-restartless-ext
ensions) I fixed the pending issues in the frame script, specifically
needing to restart for updates to fully apply.