JS loads before showing plaintext count