Summon the code simply via :
Cleaner this is it
<script type="text\javascript" src="location/to/script.js"> TicTacToe.Generate("YourId"); </script>