its good pratice to use var before variable iniatilization in js