Final round of JSHint repairs, barely any complaints now!