replacing semicolon with comma in var declaration