Scope some variables using var