Fix case-related bug

Adjust for all possible case changes in Facebook's HTML page.
Update and align header file