i am trying to build a small browser game where you can upgrade buildings and build units. building upgrade are done by timestamp and a countdown in JS on clientside, but how wo