Split into toodo.js and made things clearer