Rewrite ChocoOffice to vanilla js