Rewriten the code to prevent the error if Modernizr isn't available. This failed on older browsers
Merge pull request #5 from janpersoons/fix-modernizr-older-browsers

Rewriten the code to prevent the error if Modernizr isn't available.