How to create a private static variable in prototype pattern

In the code below, all instaniated Page objects get their Id from the static variable 'nextId'. What is the best way to reset nextId? I don't like the way I'm doing it because it's accessed through an instantiated object. I'd rather do something like: