Fixed IE6 compatibility issue

Added `lib.hasAttribute`
Fixed IE6 compatibility
Made demo page work under IE6

- Added normalize css
- Added HTML5 element compatibility
Merged