Calculated values to arrays instead of jumping into DOM