Resolved potentially ambiguous variable defs (solves JSHint errors).