change flash detection method to prevent using $.browser