Optimized! Now passes JSHint validation.