Much safer var decl detection: dropped the shady regexp, instead, now rely on bracket detection.