Update index.php

Restore 'flex' support detection except for few browsers: need more tests for IE10-11.