here is an updated copy of the /Configuration/Shared/WebAssist/DataAssist/PageGeneration.js file that should correct the issue
for help locating the users configuration folder, see the Common installation issues page:
common_installation_issues.php
if you continue getting the same error, please provide some more details about When and where the error occurs and the settings being used for your application