document is the only caveat for two.js running in node