If you need only custom js code, you can add the code in Custom Script record from inside the app.
But if you want to customize server side code for attendance you should write that code in your custom app. And you can call those code via hooks.
Check the following links, to learn about hooks: