Keep var declarations at the top. It also should be camelCase.