Rewrite chocooffice to vanilla js without frameworks