REFACTOR toggle js and slate code
Debt generator has js code for dates addec