generate.php add js call