console logged values before outputting to HTML