exactly like the node core os module, but for browsers