Changing the html5fallback.js to more a flexible approach.

Changing the whole html5fallback approach.