Allow JS GUI pages to find out if the game is running.
Differential Revision: https://code.wildfiregames.com/D2289 Tested on: clang 8.0.1.