Fixed warning typing in Midas
Moved script monitor into separate content script