Insert guards that prevent JavaScript outside event actions to use random numbers and the time function
Revert commit, an equal guard exist for all JavaScript in the interpreter