Update test and examples for React 0.12
Fix header iteration in anchor generation script