title: how to count maximum number of login attempts in javascript?
body: <p>I want to count the maximum number of login attempts in javascript. I really doubt we can do it in javascript because every time I submit the form it will give me a new instance
  of JS file and variables inside. So the previous login counter will be lost on the next form submission. Is there a way we can limit the max login attempts to 3?</p>