Fix the issue of GenerateJSCode.php to work with PHP 5.2 again (version 4.0 only)