Javascript Create Empty Json Object Counter Circuit