I'm making a TMT mod and I'm confused on certain parts

I’m very new to js and I’m confused on where to put things such as milestones, milestone rewards, achievements, challenges, etc in the code. I know this is kind of stupid but I need help

That is Too Much Things

Maybe Read Another Posts in Modding Developers