Move main.js & re-work
Move type check into utils
Build out the main ABA function