add space after if:

if (independentTicks) {

(and elsewhere in this change)