Refactoring to use JS modules. Basic impl to toggle class to mark todo done