Line count is an absurd concept with Lisp-like languages and Javascript is essentially Lisp with a human readable syntax. But whatever the metric, it needs to be precisely and unambiguously stated in the contest rules.
IMHO, for the purposes of a coding competition, if you want to measure the "token complexity" of a Javascript program, then sum the total number of the following three tokens: open (or close) curly braces, semicolons and commas. I hope the reasons for counting curly braces and semicolons are obvious to anyone that cares. Counting commas is necessary to counteract those of us who would game the system by using using commas instead of semicolons.
Then outlaw the use of eval and Function (with a capital F). Maybe labels should also be outlawed.
So while normal people would agree that for (i = 0; i < a.length; i++) { is one line of code, it gets a complexity count of 3. The obvious translation of the for loop into a while loop also produces a complexity count of 3.