fixed wrong semicolons in var statement