Adds "require" to event scripts