Use of var keyword in js file + logo