JSHinted

For neatness. Still a load of minor faults, but it's prettier now.