Added 3d support if modernizr detects
Fixed Modernizr check