Instructions on modding with JS?

I’m learning JS in codecademy but is there a template or instructions on how to mod GDT?

There is, it’s called the Modding API.