Fix alert function in Scripting API and some lint errors

It was broken, as executed in a wrong context. Using alert module
both fixes it and provides easier customization in the future.
Add 'callAt' to ScriptingAPI, which performs a script at any given time

[#44616277]
Add 'callEvery' to ScriptingAPI, which performs a script repeatedly

[#44616277]