updated generate html title to use SCRIPT_NAME