JSHint compliance: Indent=4, other spacing, remove unused vars