Moved the repeated global vars/functions for CPP problems into cppUtilities.js.