Moved the animations and transforms detection into Modernizr load instead of inside the script.