Where should the script checkbox-Indeterminate State pasted

I’m new to f7, and I create a template using webpack (framework7 create and chose the simple web app). I have the form.html in page folder, I want to use the Indeterminate State checkbox. And I copy the code from f7 docs, but the script I don’t know paste it to what location. I want create a form.js to handle the Indeterminate State checkbox only. what should I do?