Implemented a global script editor and global script functionality for the game engine