Refactored some init code in Application.cpp to use SetScriptTableValue