Set Document Units in JavaScript

Hello.

I'm playing around with a custom html docker and i was trying to set the document to millimeters.

How can i do that??

Any help would be appreciated.