Modified how parameters were added in tt file.

This avoids the last "," character when creating the parameters.
Support for AMD Require JS