Change default value for this.percentage[2]. Fix linting.

Set this.percentage[2] to 100 since it's used as a divisor in getPercentage().
When both the dividend and the divisor are 0 in this.getPercentage(), the
result is a NaN value.

This commit also fixes mixed space/tab indentation issues that were breaking
the tests.